<?php

/**
 * Description of JAWRequest
 *
 * @author JeyDotC
 * 
 * @export RequestData
 * @export-metadata singleinstance
 */
class JAWRequest extends Request {

    public function get($name, $default = null) {
        return JRequest::getVar($name, $default, "GET");
    }

    public function post($name, $default = null) {
        return JRequest::getVar($name, $default, "POST");
    }

    public function file($name, $default = null) {
        return JRequest::getVar($name, $default, "FILES");
    }
    
    public function cookie($name, $default = null) {
        return JRequest::getVar($name, $default, "COOKIE");
    }
    
    public function env($name, $default = null) {
        return JRequest::getVar($name, $default, "ENV");
    }
    
    public function server($name, $default = null) {
        return JRequest::getVar($name, $default, "SERVER");
    }

    public function getURI() {
        return JRequest::getURI();
    }

}

?>
